package drone.basis.dictionary;

public enum ExceptionDict  {

	E400("E400", "[400]Bad Request!"),
	E401("E401", "[401]NotAuthorization"),
	E404("E404", "[404]No handler founded"),
	E405("E405", "[405]Method Not Allowed"),
	E406("E406", "[406]Not Acceptable"),
	E500("E500", "[500]Internal Server Error"),

	S100("S100", "[服务器]运行时异常"),
	S101("S101", "[服务器]空值异常"),
	S102("S102", "[服务器]数据类型转换异常"),
	S103("S103", "[服务器]IO异常"),
	S104("S104", "[服务器]未知方法异常"),
	S105("S105", "[服务器]数组越界异常"),
	S106("S106", "[服务器]网络异常"),

	X100("X100", "[System] Unknown Exception"),;

	private String code;
	private String message;

	private ExceptionDict(String code, String message) {
		this.code = code;
		this.message = message;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
